// 监听来自popup的消息
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
  if (request.action === 'translate') {
    // 实际的翻译逻辑在popup.js中实现
    sendResponse({status: 'success'});
  }
});
